<?php

declare(strict_types=1);
/**
 * This file is part of bearing-web.
 *
 * @link     https://www.bearing.cn/
 * @contact  tech@bearing.cn
 * @license  https://gitee.com/cppo/bearing_web/-/blob/master/README.md
 */

namespace console\controllers;

use yii\console\Controller;

class BaseController extends Controller
{
    /**
     * 输出.
     *
     * @param mixed $string
     */
    public function stdout($string): bool|int
    {
        return parent::stdout(date('Y-m-d H:i:s') . ' ' . $string . PHP_EOL);
    }
}
